import axios from './axios'

// 客户调货查询
export function getCustomerTransfer(params){
  return axios({
    url:'/customerTransferCargoTotal/getCustomerTransferCargoTotal',
    params
  })
}
//客户调货删除
export function DeleteTransfer(data){
  return axios({
    method:'delete',
    url:'/customerTransferCargoTotal/delete',
    data
  })
}

// 获取客调记录里存在的所有操作员
export function getOperatorList(){
  return axios({
    url:'/customerTransferCargoTotal/getOperatorList'
  })
}

// 新增调货记录
export function insert(data){
  return axios({
    method: 'post',
    url:'/customerTransferCargoTotal/insert',
    data
  })
}

// 合单
export function merge(data){
  return axios({
    method: 'put',
    url:'/customerTransferCargoTotal/merge',
    data
  })
}

// 客户调货数据修改
export function update(data){
  return axios({
    method: 'put',
    url:'/customerTransferCargoTotal/update',
    data
  })
}

// 生成客进退单
export function addCustomerInputOutSingle(data){
  return axios({
    method: 'post',
    url:'/customerTransferCargoTotal/addCustomerInputOutSingle',
    data
  })
}

// 列印
export function print(params){
  return axios({
    method: 'put',
    url:'/customerTransferCargoTotal/print',
    params
  })
}